const mongoose = require('mongoose')
const moment = require('moment')
const schema = new mongoose.Schema({
  icon: { type: String },
  title: { type: String },
  ctime: {
    type: String,
    default: moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
  },
  content: {
    type: String,
    default: null
  }
})

module.exports = mongoose.model('News', schema)